Edit Text 

Inherits from: 
Text 

_____________________________________________________
            name   *196*

Type:  string 
Description:
Used by primitive find-item to find «Edit Text» by name. 

_____________________________________________________
           owner   *196*

Type:  Window 
Constraints:
Not settable.

Description:  If «Edit Text» is a member of item list of an active «Window», then the value of this attribute is that «Window»; otherwise it is NULL.

_____________________________________________________
           active?   *196*

Type:  boolean

Constraints:
Not settable on default.

Description: 
This item can be made the selected text item if and only if the value of this attribute is TRUE, and the value of the visible? attribute is TRUE. 

_____________________________________________________
           visible?   *196*

Type:  boolean

Description:  «Edit Text» is displayed in the owning «Window» if and only if the value of this attribute is TRUE,  and the value of the active? attribute is TRUE. If a selected «Edit Text» is made invisible or inactive, it is deselected.

Side effects:
Setting causes «Edit Text» to be redrawn in the owning «Window». 

_____________________________________________________
           move?   *197*

Type:  boolean

Description: 
The location of «Edit Text» is changed relative to the size of the owning «Window» if and only if the value of this attribute is TRUE.

_____________________________________________________
           grow?   *197*

Type:  boolean

Description: 
The size of «Edit Text» is changed relative to the size of the owning «Window» if and only if the value of this attribute is TRUE.

_____________________________________________________
           location   *197*

Type:  Point

Description:
The location of the upper left corner of «Edit Text» in owning «Window».

Side effects:
Setting causes «Edit Text» to be redrawn.

_____________________________________________________
           size   *197*

Type:  Point

Description:
Offset of lower right corner of «Edit Text» from upper left corner.

Side effects:
Setting causes «Edit Text» to be redrawn.

_____________________________________________________
           balloon   *198*
Type: 
list 
Description:
Balloon Help information; format varies with the type (Prograph string or 'STR ', 'STR#', 'TEXT' or 'PICT' resource) of Balloon Help.

_____________________________________________________
            border?  *198*

Type: 
boolean 
Description:
A 1-point border is drawn around the «Edit Text» if the value of this attribute is TRUE.

Side effects:
 Setting causes «Edit Text» to be redrawn. 

_____________________________________________________
            font  *198*

Type:  integer 
Description: The default font in which «Edit Text» is drawn. See Mac Constants (geneva, and so on) in the ˙Info… dialog for some values, as well as chapter 7, “The Macintosh Toolbox.” Refer to Chapter 4, “Application Builder”, for a discussion of how Edit Text and Scroll Text styles and style records are used.

Side effects:  Setting causes «Edit Text» to be redrawn. 

_____________________________________________________
           font style  *198*

Type:  integer

Description: The default style in which «Edit Text» is drawn. See Mac Constants (bold, and so on) in the ˙Info… dialog for some values, as well as chapter 7, “The Macintosh Toolbox.”

Side effects:  Setting causes «Edit Text» to be redrawn. 

_____________________________________________________
           font size  *199*

Type:  integer 
Description: The default point size in which «Edit Text» is drawn. 

Side effects:  Setting causes «Edit Text» to be redrawn. 

_____________________________________________________
           justification  *199*

Type:  integer 
Description: The justification for drawing «Edit Text». See Mac Constants (teJustLeft, and so on) in the ˙Info… dialog for some values.

Side effects:  Setting causes «Edit Text» to be redrawn. 

_____________________________________________________
           text  *199*

Type:  string 
Description: Text that is displayed in the item. It can have a maximum length of 32K bytes. If the text is longer than 32K bytes, it is truncated to that size.

Side effects:  Setting this attribute causes «Edit Text» to be redrawn immediately only if the «Edit Text» is the selected text item in its owning «Window». Otherwise the redraw is delayed until the Application Manager processes the update event after the user’s method finishes.
Setting this attribute also sets the style record attribute to NULL, and applies the default font, size and style to the new text.

_____________________________________________________
            edit record  *200*

Type:  TERec@@

Constraints:
Not settable.

Description: Text Edit record.

_____________________________________________________
           style record  *200*

Type:   null | StScrpRec@@

Constraints:
Not settable.

Description: This attribute is NULL if only one font, font size and font style are used throughout the text; otherwise, it points to the style record.

_____________________________________________________
            wrap?  *200*

Type:  boolean

Description: Text is kept within the bounding rectangle of the «Edit Text» if and only if the value of this attribute is TRUE.

_____________________________________________________
           selection  *200*

Type:  Point

Description:
The range of characters selected. If the value of selection is x y, x is the first character in the selection, and y the last, with 0 being the first character in the «Edit Text». 
Side effects:  If the selected characters are outside the visible rectangle, they are scrolled into view and all characters in the selection range are highlighted.